<template>
    <div class="home">
        <c-date></c-date>

<!--        <c-dialog :initShow="true" initTitle="测试">-->
<!--                <div>-->
<!--                    123-->
<!--                </div>-->
<!--        </c-dialog>-->


<!--        <c-table :checkbox="true"></c-table>-->
<!--        <el-card class="box-card">-->
<!--            <template #header>-->
<!--                <div class="clearfix">-->
<!--                    <span>日历</span>-->
<!--                    <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>-->
<!--                </div>-->
<!--            </template>-->
<!--            <el-calendar v-model="date">-->
<!--            </el-calendar>-->
<!--        </el-card>-->
<!--        <el-image-->
<!--                style="width: 100px; height: 100px"-->
<!--                :src="img"-->
<!--                fit="fill"></el-image>-->
<!--        <el-card class="box-card">-->
<!--            <template #header>-->
<!--                <div class="clearfix">-->
<!--                    <span>表格</span>-->
<!--                </div>-->
<!--            </template>-->
<!--            <el-form ref="form" :model="form" label-width="80px">-->
<!--                <el-form-item label="活动名称">-->
<!--                    <el-input v-model="form.name"></el-input>-->
<!--                </el-form-item>-->
<!--                <el-form-item label="活动形式">-->
<!--                    <el-input type="textarea" v-model="form.desc"></el-input>-->
<!--                </el-form-item>-->
<!--                <el-form-item>-->
<!--                    <el-button type="primary" @click="onSubmit">立即创建</el-button>-->
<!--                    <el-button>取消</el-button>-->
<!--                </el-form-item>-->
<!--            </el-form>-->
<!--        </el-card>-->
    </div>
</template>

<script lang="ts">
    import {defineComponent,ref,reactive} from 'vue';

    export default defineComponent({
        name: 'home',
        setup() {
            const date = ref(new Date());
            const img = ref('https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg');
            const form = reactive({
                name: '',
                desc: ''
            });
             const onSubmit=()=>{
                console.log('点击');
            }
            return {
                date,
                img,
                form,
                onSubmit
            }
        },
    });
</script>
